package com.xh.sys.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 *  实体类。
 *
 * @author LHL
 * @since 2023-10-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sys_comment_back_itm", schema = "audit")
public class SysCommentBackItm implements Serializable {

    /**
     * 主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 关联的评论回复主体id
     */
    @NotNull(message = "commentBackId不能空")
    private Integer commentBackId;

    /**
     * 内容
     */
    @NotBlank(message = "content不能空")
    private String content;

    /**
     * 评论人code,关联系统
     */
    @NotNull(message = "usercode不能空")
    private Integer usercode;

    /**
     * 评论人姓名,关联系统
     */
    private String userName;

    /**
     * 评论时间
     */
    private Date createTime;

    /**
     * 关联附件表
     */
    private String fileids;

    /**
     * itm父级,空的是直接评论主体的
     */

    private Integer pid; //pId这样取名 jackcson 赋不上值

}
